package com.edu.utils;

import lombok.Data;

/**
 * @Author ZCN
 * @Date 2021/11/13 15:59
 * @Version 1.0
 **/
@Data
public class PageParam {
    private Integer page;
    private Integer limit;

    public Integer getStart(){
        return (page - 1) * limit;
    }

    public PageParam(Integer page, Integer limit) {
        this.page = page;
        this.limit = limit;
    }
}
